//
//  EducationCell.m
//  iBaby365v2
//
//  Created by admin on 14/12/2.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import "EducationCell.h"
#import "SPEducation.h"
//#import "UIImageView+WebCache.h"
#import "UIImageView+AFNetworking.h"

@interface EducationCell ()

@property (weak, nonatomic) IBOutlet UILabel *topLable;
@property (weak, nonatomic) IBOutlet UIImageView *centerImageView;
@property (weak, nonatomic) IBOutlet UILabel *bottomLable;

@end
@implementation EducationCell

+(instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"speduction";
    EducationCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if(cell == nil){
        cell = [[[NSBundle mainBundle] loadNibNamed:@"EducationCell" owner:nil options:nil] lastObject];
    }
    return cell;
}
-(void)setEducation:(SPEducation *)education
{
    _education = education;
    NSLog(@">>>>>>%@",education.createTime);
    self.topLable.text = education.createTime;
    [self.centerImageView setImageWithURL:[NSURL URLWithString:education.photo] placeholderImage:nil];
    self.bottomLable.text = education.title;
}

@end
